{"version":3,"file":"text.map.js","names":["BX","namespace","escapeText","Landing","Utils","headerTagMatcher","Matchers","headerTag","changeTagName","textToPlaceholders","Block","Node","Text","options","Runtime","loadExtension","apply","this","arguments","type","tableBaseFontSize","onClick","bind","onPaste","onDrop","onInput","onKeyDown","onMousedown","onMouseup","node","addEventListener","document","currentNode","prototype","__proto__","superClass","constructor","onAllowInlineEdit","setAttribute","Loc","getMessage","onChange","preventAdjustPosition","preventHistory","call","UI","Panel","EditorPanel","getInstance","adjustPosition","History","push","event","code","onBackspaceDown","clearTimeout","inputTimeout","key","keyCode","which","top","window","navigator","userAgent","match","ctrlKey","metaKey","setTimeout","lastValue","getValue","isTable","tableFontSize","parseInt","getComputedStyle","srcElement","getPropertyValue","textContent","classList","contains","add","remove","onEscapePress","isEditable","hide","disableEdit","preventDefault","clipboardData","getData","sourceText","encodedText","encode","isLinkPasted","prepareToLink","formattedHtml","replace","RegExp","execCommand","text","onDocumentClick","fromNode","manifest","group","allowInlineEdit","Main","isControlsEnabled","stopPropagation","enableEdit","querySelectorAll","forEach","table","hasAttribute","prepareNewTable","textOnly","StylePanel","isShown","show","buttons","nodeTableContainerList","tableContainer","tableEditor","unselect","Tool","ColorPicker","hideAll","requestAnimationFrame","target","nodeName","parentElement","range","createRange","selectNode","getSelection","removeAllRanges","addRange","addTableButtons","isContentEditable","length","nodeTableContainer","TableEditor","default","getDesignButton","getAiTextButton","isHeader","getChangeTagButton","onChangeHandler","onChangeTag","contentEditable","designButton","Button","Design","html","attrs","title","onDesignShow","aiTextButton","AiText","repository","sections","startMessage","engineParameters","i","c","section","aiTextPicker","siteId","picker","AI","Picker","moduleId","contextId","analyticLabel","history","onSelect","item","innerHTML","data","onTariffRestriction","InfoHelper","setLangSpace","LangSpace","setEngineParameters","isAllowInlineEdit","getField","field","Field","selector","name","content","changeTagButton","setValue","value","preventSave","isSavePrevented","querySelector","cloneNode","prepareTable","test","nodeIsTable","tdTag","neededButtons","setTd","tableButtons","getTableButtons","tableAlignButtons","isCell","isButtonAddRow","isButtonAddCol","isNeedTablePanel","hideButtons","nodeTableList","nodeTable","tableButton","parentNode","children","Array","from","getAmountTableRows","neededButton","childNodes","childNodesArray","childNodesArrayPrepare","childNode","nodeType","neededPosition","indexOf","rows","row","rowChildPrepare","rowChildNode","getAmountTableCols","isSelectedAll","th","Dom","hasClass","hasParentWithClass","insertAfter","activeAlignButtonId","setActiveAlignButtonId","undefined","count","isIdentical","tableAlignButton","id","layout","element","className","parent","ChangeTag","toLowerCase","activateItem","AlignTable","ColorAction","DeleteElementTable","StyleTable","CopyTable","DeleteTable","changeOptionsHandler","then","setClassesForRemove","selection","position","getRangeAt","startOffset","focusNode","Type","isNil","firstChild","focusNodeParent","allowedNodeName","includes","focusNodeContainer","createElement","append","contentNode","after","reg"],"sources":["text.js"],"mappings":"CAAC,WACA,aAEAA,GAAGC,UAAU,cAEb,IAAIC,EAAaF,GAAGG,QAAQC,MAAMF,WAClC,IAAIG,EAAmBL,GAAGG,QAAQC,MAAME,SAASC,UACjD,IAAIC,EAAgBR,GAAGG,QAAQC,MAAMI,cACrC,IAAIC,EAAqBT,GAAGG,QAAQC,MAAMK,mBAW1CT,GAAGG,QAAQO,MAAMC,KAAKC,KAAO,SAASC,GAErCb,GAAGc,QAAQC,cAAc,iCACzBf,GAAGG,QAAQO,MAAMC,KAAKK,MAAMC,KAAMC,WAElCD,KAAKE,KAAO,OACZF,KAAKG,kBAAoB,KAEzBH,KAAKI,QAAUJ,KAAKI,QAAQC,KAAKL,MACjCA,KAAKM,QAAUN,KAAKM,QAAQD,KAAKL,MACjCA,KAAKO,OAASP,KAAKO,OAAOF,KAAKL,MAC/BA,KAAKQ,QAAUR,KAAKQ,QAAQH,KAAKL,MACjCA,KAAKS,UAAYT,KAAKS,UAAUJ,KAAKL,MACrCA,KAAKU,YAAcV,KAAKU,YAAYL,KAAKL,MACzCA,KAAKW,UAAYX,KAAKW,UAAUN,KAAKL,MAGrCA,KAAKY,KAAKC,iBAAiB,YAA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